﻿using System;
using System.Windows.Forms;
using RayDen.SceneLab.Controllers.FormControllers;

namespace RayDen.SceneLab.UI
{
    public partial class ApplicationSettingsForm : Form
    {


        protected AppSettingsFormController Controller;

        public ApplicationSettingsForm()
        {
            InitializeComponent();
            this.Controller = new AppSettingsFormController(this);
            this.grdGlobalConfig.SelectedObject = ApplicationContext.Instance.Config.RayEngineConfiguration;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            this.Controller.SaveConfiguration();
        }
    }
}
